package 代码块;

import java.util.ArrayList;

public class 案例 {
    //斗地主创建新牌
    //只有一副且是集合
    public static ArrayList<String> S=new ArrayList<>();
    static {
        String[] size={"A","2","3","4","5","6","7","8","9","10","J","Q","K"};
        String[] color={"♦","♣","♥","♠"};
        String card="";
        for (int i = 0; i < size.length; i++) {
            for (int j = 0; j < color.length; j++) {
                card=size[i]+color[j];
                S.add(card);
                card="";
            }
        }
        S.add("大王");
        S.add("小王");
    }

    public static void main(String[] args) {
        System.out.println(S);
    }
}
